<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('yp','center_header'); ?>
<div id="main">
<?php include template("yp","center_left"); ?>
  <div id="right">
<div class="clear"></div>
<table cellpadding="0" cellspacing="1" class="table_list">
  <caption>人才库</caption>
  <tr>
<th>真实姓名</th>			
<th>职位名称</th>
<th width="110">投递时间</th>
<th width="100">状态</th>
<th width="100">操作</th>
  </tr>
 <?php if(is_array($applys['result'])) foreach($applys['result'] AS $result) { ?>
<tr>
<td><a href="<?php echo BUSINESSDIR;?>?file=apply&amp;action=showapply&amp;stockid=<?php echo $result['stockid'];?>"><?php echo $result['truename'];?></a></td>
<td><a href="<?php echo show_url('job',$result['jobid']);?>"><?php echo $result['title'];?></a></td>
<td><?php echo date('Y.m.d',$result['addtime']);?></td>
<td style="color:red"><?php if($result['status'] == 2) { ?>已邀请面试<?php } elseif ($result['status'] == 1) { ?>已查看<?php } else { ?>未查看<?php } ?></td>
<td><?php if($result['status'] == 2) { ?>无<?php } elseif ($result['status'] == 1) { ?><a href="javascript:void(0)" onclick="javascript:invite(<?php echo $result['stockid'];?>)">邀请面试</a><?php } else { ?><a href="<?php echo BUSINESSDIR;?>?file=apply&amp;action=showapply&amp;stockid=<?php echo $result['stockid'];?>">查看简历</a><?php } ?></td>
</tr>
<?php } ?>
</table>
<div id="pages"><?php echo $pages;?></div>
<table cellpadding="0" cellspacing="1" class="table_info">
  <caption>
  提示信息
  </caption>
  <tr>
<td> 您可以通过邀请面试来给面试者发送短消息和邮件。邀请后将不能再次邀请。
<br/>
</td>
  </tr>
</table>
  </div>
</div>
<div class="clear"></div>
<?php include template('phpcms','footer'); ?>
<SCRIPT LANGUAGE="JavaScript">
<!--
$().ready(function() {
  $('form').checkForm(1);
});

var invite = function(stockid)
{
$.get("<?php echo BUSINESSDIR;?>",{'file':'apply','action':'invite','stockid':stockid,'rnd':Math.random()},function(data){if(data == 1){alert('邀请成功');window.location.reload();}});
}
//-->
</SCRIPT>
<script type="text/javascript" src="images/js/form.js"></script>
<script type="text/javascript" src="images/js/validator.js"></script>
<script type="text/javascript" src="yp/images/js/info_add.js"></script>